{extend name="$index_style_layout" /}

<!--SEO相关-->
{block name="head_title"}{$webdb.mseo_title?:$webdb.seo_title}{/block}
{block name="head_keword"}{$webdb.mseo_keyword?:$webdb.seo_keyword}{/block}
{block name="head_description"}{$webdb.mseo_description?:$webdb.seo_description}{/block}


{block name="body_content"}
<link rel="stylesheet" href="__STATIC__/index/default/list.css">
<div class="ListMainCont"> 
	{qb:hy name="wap_cms_indexpage_001" type="labelmodel" val="datas" where="index_style/default/cms/content/wap_model/listsort"} {$datas} {/qb:hy}
	<div class="ListArticles">
{php}$mid=input('mid')>0?intval(input('mid')):-1;{/php}
<!--name是标签名，跟通用标签不能重名，rows取几条数据,order按什么方式排序，list代表可控排序，id即时间,view代表浏览量-->
{qb:listpage name="news_list_page_listdata002" rows="10" status="1" order="list desc,id desc"}
		<div class="Lists">
			<div class="title"><a href="{$rs.url}">{$rs.title|get_word=60}</a></div>
			<ul>
	{switch name="rs.image_type"}
		{case value="1"}
				<ol><a href="{$rs.url}"><img src="{:fun('img@tt',$rs.picurl,450,300)}" onerror="this.src='__STATIC__/images/nopic.png'"></a></ol>
				<li><a href="{$rs.url}">{$rs.content|get_word=80}</a></li>
		{/case}
		{case value="2"}
			{volist name="rs.picurls" id="imgurl"}
				<ol><a href="{$rs.url}"><img src="{:fun('img@tt',$imgurl.picurl,450,300)}" onerror="this.src='__STATIC__/images/nopic.png'"></a></ol>

			{/volist}
		{/case}
		{default /}
				<li><a href="{$rs.url}">{$rs.content|get_word=120}</a></li>
	{/switch}
			</ul>
			<div class="mores"><span><i class="fa fa-user"></i> {$rs.uid|get_user_name}　<!--<i class="glyphicon glyphicon-time"></i>--> {$rs.create_time|format_time=true}</span><em> <i class="si si-eye"></i> {$rs.view}</em></div>
		</div>
{/qb:listpage} 
	</div>
	<!--<div class="ShowMoreInfos"><button type="butter" onclick="ShowMoreInfo()">查看更多</button></div>-->
</div>
<!--{$pages}-----显示分页的代码---->
<script type="text/javascript">
var morepage=1;
function ShowMoreInfo(){	
	morepage++;
	$.get('{qb:list_url name="news_list_page_listdata002" /}'+morepage+'&'+Math.random(),function(res){
		if(res.code==0){
			if(res.data==''){
				layer.msg("已经显示完了！",{time:500});
				$('.ShowMoreInfos button').attr('onclick','');
				$('.ShowMoreInfos button').html('显示完了');
				$('.ShowMoreInfos button').css({'background':'#CCC'});
			}else{
				scroll_get=true; //继续滚动
				//res.data="<span class='pages"+morepage+"'>"+res.data+"</span>";			
				$('.ListArticles').append(res.data);
				//$('.ListArticles .pages'+morepage).hide();
				//$('.ListArticles .pages'+morepage).show(500);
			}

			sessionStorage.setItem("cms_history_data",$('.ListArticles').html()); //存放到历史记录
		}else{
			layer.msg(res.msg,{time:2500});
		}
	});
}
</script>
<script type="text/javascript" src="__STATIC__/index/default/rollmore.js"></script>
{/block}